package cn.com.agree.dto.book;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import java.util.Date;

/**
 * @author pedro@TaleLin
 * @author Juzi@TaleLin
 */
@Data
@NoArgsConstructor
public class CreateOrUpdateMackDTO {

    @NotEmpty(message = "{product_mac.bcode.not-empty}")
    @Length(max = 50, message = "{product_mac.bcode.length}")
    private String bcode;

    @NotEmpty(message = "{product.mac.not-empty}")
    @Length(max = 50, message = "{product_mac.mac.length}")
    private String mac;

    @NotEmpty(message = "{product.mark.not-empty}")
    @Length(max = 1000, message = "{product_mac.mark.length}")
    private String mark;
}

